
"""
contains all the configuration params

"""


__author__  = "Number Huang<huang.bafeng@iNeed.com>"
__status__  = "developing"
__version__ = "0.1108.31.1"
import time
LngLatSCALE = 100000
#less than the limit (second) will use the short term search,the value will be changed to a smaller one in testing mode 
SHORTTIME_LIMIT = 900 
DEFAULT_TIME_PERGRID = 60 #the tiem a going driver stay in a grid
GAMETEST=False
TIMEZONE=900 #the period of for a request/offer group
MAXPERSON=4
TIMEBASE=time.time()
matchEngine=None
def getTimeIdx(time1=None):
        if not time1:
            time1 = time.time()
        idx = int((time1 - TIMEBASE)/TIMEZONE)
        return idx